package com.zito.db;

import com.downlove.database.QueryHelper;
import com.zito.bean.Admin;

public class AdminDB {
	
	public Admin authMasterLogin(String username, String upass) {
		final String sql = "SELECT * FROM admin WHERE uname=? AND upass =? AND `type` = 1";
		Admin obj =  QueryHelper.read(Admin.class, sql, username, upass);
		return obj;
	}
	
	public Admin authInteractLogin(String username, String upass) {
		final String sql = "SELECT * FROM admin WHERE uname=? AND upass =?";
		Admin obj =  QueryHelper.read(Admin.class, sql, username, upass);
		return obj;
	}
}
